import request from '@/utils/request'

// 目录列表
export function depCategoryList(data) {
  return request({
    url: '/dep/con/tree',
    method: 'post',
    data: data
  })
}


// 新增目录
export function adddepCategory(data) {
  return request({
    url: '/dep/con/add',
    method: 'post',
    data: data
  })
}

// 编辑目录
export function editCategory(data) {
  return request({
    url: '/dep/con/update',
    method: 'post',
    data: data
  })
}

// 删除目录
export function deleteCategory(data) {
  return request({
    url: '/dep/con/del/' + data.id,
    method: 'post',
    data: data
  })
}

// 自动导入目录
export function autoRule(data) {
  return request({
    url: '/dep/rule/page',
    method: 'post',
    data: data
  })
}

// 签章下拉
export function selData(data) {
  return request({
    url: '/dep/es/getSelData',
    method: 'post',
    data: data
  })
}

// 档案列表
export function archivesPage(data) {
  return request({
    url: '/dep/archives/page',
    method: 'post',
    data: data
  })
}

// 设置打印状态
export function setPrint(data) {
  return request({
    url: '/dep/archives/setPrint',
    method: 'post',
    data: data
  })
}

// 设置导出状态
export function setExport(data) {
  return request({
    url: '/dep/archives/setExport',
    method: 'post',
    data: data
  })
}

// 设置访问状态
export function setConsult(data) {
  return request({
    url: '/dep/archives/setConsult',
    method: 'post',
    data: data
  })
}

// 档案删除
export function archivesDel(data) {
  return request({
    url: '/dep/archives/del/' + data.id,
    method: 'post',
    data: data
  })
}

// 手动导入目录
export function handRule(data) {
  return request({
    url: '/dep/archives/pedPage',
    method: 'post',
    data: data
  })
}

// 手动导入设置
export function handRuleSet(data) {
  return request({
    url: '/dep/archives/update',
    method: 'post',
    data: data
  })
}

// 自动导入设置
export function autoRuleSet(data) {
  return request({
    url: '/dep/rule/update',
    method: 'post',
    data: data
  })
}

